//
//  JHButtonLunboCollectionViewCell.m
//  Liberty Voice
//
//  Created by dlios on 15-5-27.
//  Copyright (c) 2015年 ClearLove. All rights reserved.
//

#import "JHButtonLunboCollectionViewCell.h"
#import "UIImageView+WebCache.h"

@interface JHButtonLunboCollectionViewCell ()
@property(nonatomic,retain)UIImageView * pic;
@end

@implementation JHButtonLunboCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        self.pic = [[[UIImageView alloc] init] autorelease];
        [self.contentView addSubview:_pic];
    }return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    _pic.frame = self.contentView.bounds;
}
- (void)setLunbo:(JHButtonlunbo *)lunbo
{
    if (lunbo != _lunbo) {
        [_lunbo release];
        _lunbo = [lunbo retain];
    }
    [_pic sd_setImageWithURL:[NSURL URLWithString:lunbo.pic]];
}

@end
